package Week02.Day05;

/**
 * 裤子
 */
public class Trousers extends Inheritance {
    /**裤腿长*/
    private String legLength;
    public Trousers(){
    }
    public Trousers(String legLength){
        this.legLength = legLength;
    }
    /**裤腿长度信息方法*/
    public void lengthInformation(){
        System.out.println("长度为" + legLength);
    }
    public String getLength() {
        return legLength;
    }
    public void setLength(String legLength) {
        this.legLength = legLength;
    }
}

